from playwright.async_api import BrowserContext


# 登录gmall
async def login_gmall(browser: BrowserContext):
    print('开始登录 gmall')
    page = await browser.new_page()
    await page.goto("https://mail.google.com/")
    await page.wait_for_timeout(2000)
    # 页面交互
    # 等待 5s
    await page.wait_for_timeout(5000)
    print('gmall 登录成功')
